Technical Q&As


QTW 27 - QuickTime for Windows and Window Style Attributes (1-June-95)




QuickTime for Windows blits directly to the screen, but it honors the Windows handle style values. However, it's important to set these values correctly. If you don't, you may encounter a number of odd problems. For example, the movie may not play at all, or it may play, but no video frames are displayed.

The various QuickTime for Windows code examples show which flags should be set. The following example shows how to set the Attr. style information in OWL 2.0 (Object Window Library, Borland C++)when creating a window that displays a movie rect that plays movies:

Attr.Style = WS_CHILD | WS_CAPTION | WS_CLIPCHILDREN | WS_OVERLAPPED;

(The WS_CLIPCHILDREN attribute is very important.)
This might also be the case with other Windows application frameworks (MFC).

Technical Q&As
Previous Question | Contents | Next Question